package jfinal.util;

import org.springframework.context.ApplicationContext;

public class SpringUtil {

	public static ApplicationContext ctx = null;
	
	public static <T> T getBean(Class<T> clazz) {
		return ctx.getBean(clazz);
	}
	
	public static Object getBean(String name) {
		return ctx.getBean(name);
	}
}
